package framework.config;

import java.util.HashMap;
import java.util.Map;

public class ModuleConfig {

    private Map<String,ActionConfig> actions=new HashMap<String,ActionConfig>();

    public ModuleConfig() {
    }

    public void addAction(ActionConfig actionConfig){
        if(actionConfig!=null){
            actions.put(actionConfig.getPath(),actionConfig);
        }
    }

    public ActionConfig findAction(String path){
        return actions.get(path);
    }

    public Map<String, ActionConfig> getActions() {
        return actions;
    }

    public void setActions(Map<String, ActionConfig> actions) {
        this.actions = actions;
    }
}
